package com.mss.media.enumeration;

import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author 湫
 * @Date 2021/12/3 11:39
 * Name 点赞类别
 */
@Getter
@AllArgsConstructor
public enum PraiseType implements IEnum<Integer> {
    /**
     * 作品
     */
    CASE(0,"作品"),
    /**
     * 评论
     */
    COMMENTS(1,"评论");

    private final Integer code;
    private final String desc;

    @Override
    public Integer getValue() {
        return code;
    }

    @Override
    public String toString() {
        return this.desc;
    }

}
